
             
/**
 * 
 *
 * @File name:  BackupDataAction.java   备份数据
 * @Create on:  2011-10-31 17:00:991
 * @Author   :  陈伟
 *
 * @ChangeList
 * ---------------------------------------------------
 * Date         Editor              ChangeReasons
 *
 */
           
        
package com.boho.estates.data.action;

            
import cn.boho.framework.actions.ActionImp;
import cn.boho.framework.context.ActionContext;
import cn.boho.framework.service.MessageService;

import com.boho.estates.data.service.DataService;

public class BackupDataAction extends ActionImp {
	
	@Override
	protected void doException(ActionContext atx, Exception ex) {
		atx.setErrorContext("BACKUP_ERROR", MessageService.getMessage("BACKUP_ERROR"),"【数据备份】", ex);
	}
	@Override
	protected int performExecute(ActionContext atx) throws Exception {
		DataService.backup();
		atx.setValue("BACKUP_STATUS", "1");
		return 1;
	}
	@Override
	protected int verifyParameters(ActionContext atx) throws Exception {
		return 1;
	}
}
